import React, { Component } from 'react'
import {Route,Switch,Redirect} from 'react-router-dom'
//引入相关的组件
import Login from './pages/Login' 
import Home from './pages/Home' 
import './App.css'
export default class App extends Component {
  render() {
    return (
      <div id="app-container">
        <Switch>
          <Route path="/login" component={Login}></Route>
          <Route path="/home" component={Home}></Route>
          <Redirect to="/login"></Redirect>
        </Switch>
      </div>
    )
  }
}
